package org.nanhill.commons.lang;

/**
 * @author alin
 */
public class UnexpectedException extends RuntimeException {
  /**
     * 
     */
    private static final long serialVersionUID = 3257284734098026549L;
////////////////////////////////////////////////////////////////
  // instance variables
  private Throwable nestedException;


  ////////////////////////////////////////////////////////////////
  //constructors
  public UnexpectedException(String s, Throwable t) {
    super(s);
    nestedException = t;
  }

  public UnexpectedException(Throwable e) {
    super();
    nestedException = e;
  }

  /**
 * @param message
 */
public UnexpectedException(String message) {
    super(message);
    // TODO Auto-generated constructor stub
}

////////////////////////////////////////////////////////////////
  // accessors
  public Throwable getNestedException() { return nestedException; }

} /* end class UnexpectedException */
